package com.kate.quickstart.pojo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties(prefix = "my")
@Data
public class User {
	private String name;
	private String address;
//	private String[] favorites;
	private List<String> favorites;

	private List<Book> books;
 //省略getter/setter
}